package com.nut.spp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nut.spp.common.BaseEntity;
import lombok.Data;

/**
 * 店铺表
 */
@Data
@TableName("biz_shop_detail")
public class ShopDetail extends BaseEntity {

    @TableId(type = IdType.INPUT)
    private Integer id;

    //公司名称
    private String companyName;

    //公司所在地  填省市名称  逗号分隔
    private String companyPath;

    //公司所在地  填省市编码 逗号分隔
    private String companyPathNo;

    //公司地址
    private String companyAddress;

    //注册资金
    private String registerMoney;

    //联系人姓名
    private String linkName;

    //联系人电话
    private String linkPhone;

    //公司邮箱
    private String companyMail;

    //营业执照号
    private String licenceNum;

    //营业执照截止时间 长期传2099-12-31
    private String licenceEndDate;

    //营业执照经营范围
    private String licenceScope;

    //营业执照
    private String licenceImg;

    //法人姓名
    private String legalName;

    //法人身份证号
    private String legalIdent;

    //法人身份证截止时间 长期传2099-12-31
    private String legalEndTime;

    //法人手机号
    private String legalMobile;

    //法人身份证照片正面
    private String legalIdentFront;

    //法人身份证照片背面
    private String legalIdentBack;

    //银行名称
    private String bankName;

    //银行开户名
    private String bankAccountName;

    //银行账号
    private String bankAccountNum;

    //支行名称
    private String bankBranchName;

    //支行联行号
    private String bankBranchNum;

    //银行开户证明
    private String bankOpen;

    //结算周期
    private String settlementCycle;

    //店铺上次结算日
    private String settlementDay;

    //备注
    private String remark;

    //银行编码
    private String bankNo;

    //填充
    public void filled(Shop shop) {
        shop.setCompanyName(this.getCompanyName());
        shop.setCompanyPath(this.getCompanyPath());
        shop.setCompanyPathNo(this.getCompanyPathNo());
        shop.setCompanyAddress(this.getCompanyAddress());
        shop.setRegisterMoney(this.getRegisterMoney());
        shop.setLinkName(this.getLinkName());
        shop.setLinkPhone(this.getLinkPhone());
        shop.setCompanyMail(this.getCompanyMail());
        shop.setLicenceNum(this.getLicenceNum());
        shop.setLicenceEndDate(this.getLicenceEndDate());
        shop.setLicenceScope(this.getLicenceScope());
        shop.setLicenceImg(this.getLicenceImg());
        shop.setLegalName(this.getLegalName());
        shop.setLegalIdent(this.getLegalIdent());
        shop.setLegalEndTime(this.getLegalEndTime());
        shop.setLegalMobile(this.getLegalMobile());
        shop.setLegalIdentFront(this.getLegalIdentFront());
        shop.setLegalIdentBack(this.getLegalIdentBack());
        shop.setBankName(this.getBankName());
        shop.setBankAccountName(this.getBankAccountName());
        shop.setBankAccountNum(this.getBankAccountNum());
        shop.setBankBranchName(this.getBankBranchName());
        shop.setBankBranchNum(this.getBankBranchNum());
        shop.setBankOpen(this.getBankOpen());
        shop.setSettlementCycle(this.getSettlementCycle());
        shop.setSettlementDay(this.getSettlementDay());
        shop.setRemark(this.getRemark());
        shop.setBankNo(this.getBankNo());
    }

}
